package cn.wizzer.app.web.commons.utils;

import cn.wizzer.app.sys.modules.services.SysParamService;
import cn.wizzer.framework.util.debug.DebugUtil;
import com.alibaba.dubbo.config.annotation.Reference;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

@IocBean(name = "debugUtil")
public class DebugUtilImpl extends DebugUtil {
    @Reference
    @Inject
    private SysParamService sysParamService;

    @Override
    public boolean isDebugging() {
        return sysParamService.fetch().isDebug();
    }
}
